package com.kiss.rpc;

import com.kiss.rpc.impl.MyDo2;

public class RpcProvider2 {
    public static void main(String[] args) {
        RpcBootstrap bootstrap = RpcBootstrap.getInstance();
        bootstrap.getConfig().setPort(9090);
        bootstrap.getConfig().setGroup("do2");
        ServiceConfig<MyDo> serviceConfig1 = new ServiceConfig<>();

        serviceConfig1.setInterface(MyDo.class);
        serviceConfig1.setRef(new MyDo2());
        serviceConfig1.setGroup(bootstrap.getConfig().getGroup());

        bootstrap.publish(serviceConfig1).start();
    }
}
